<?php
$this->breadcrumbs = array(
    'Home' => array('Home/index'),
    'Avatar',
);
?>

<?php
$this->beginWidget('CActiveForm',    array(
	'id'=>'user-profiles-form',
	'enableAjaxValidation'=>false,
    'htmlOptions' => array(
        'enctype' => 'multipart/form-data',
    )
));
echo Chtml::activeFileField($model, 'avatar');
echo Chtml::error($model, 'avatar');
echo Chtml::submitButton('UpFile');
$this->endWidget();
?>
<?php 

          //$file =>$val;
       
            echo "<li>";
                echo "<img width='250' height='175' src ='data/{$model->avatar}'/>";
            echo"</li>";
			//echo $file->textField($file,'ngayTour',array('size'=>50,'maxlength'=>50));
     
?>